package com.wodan.zhongjinjicang.mapper;

import com.wodan.zhongjinjicang.model.UserBean;
import org.apache.ibatis.annotations.Param;

import java.util.Map;


public interface UserMapper {

    int insert(UserBean userBean);

    UserBean selectByCriteria(Map<String, Object> queryMap);
    
    UserBean selectByPhone(@Param("phone") String phone);

    int updateProfileById(UserBean userBean);

    int updatePhoneByUserId(@Param("id")Integer id, @Param("newPhone")String newPhone);

    int updatePwdByUserId(@Param("id")Integer id, @Param("newPwd")String newPwd);

    UserBean selectByChannel(@Param("usid")String usid, @Param("channel")Integer channel);
}